package edu.sctu.practice.class02.yangshengyu.assign03.test01;

/**
 * Created by Cullen on 2015/10/22.
 */
public class Circle extends GeometricObject {


    public Circle(double weight, String name, String color) {
        this.name = name;
        this.weight = weight;
        this.color = color;
    }

    public double findArea() {
        return (this.weight / 2) * (this.weight / 2) * Math.PI;
    }

    public double findPerimeter() {
        return (this.weight / 2) * 2 * Math.PI;
    }
}
